package demo.useless;

class MyClass {
    int a;
    int b;

    public MyClass(int a, int b) {
        this.a = a;
        this.b = b;
    }

    public int prod() {
        return a * b;
    }

}

public class Useless {
    public static MyClass cache;
    public static int intcache;
    public static void doSth() {
        for (int i=0;i<3000000;i++) {
            MyClass o = new MyClass(1, i);
            int prod = 0;
            if (o.b + o.a < 100000) {
                cache = o;
            } else {
                prod = o.b;
                intcache = prod;
            }
        }
    }
}
